package com.craney.testBmp
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	
	public class GetSetPixels
	{
		private var bmpData:BitmapData = new BitmapData(200, 200, false, 0xeecc00);
		
		private var bmp:Bitmap = new Bitmap(bmpData);
		
		public function GetSetPixels(ps:Sprite)
		{
			ps.addChild(bmp);
			
			trace(bmpData.getPixel(50, 50).toString(16));
			
			for(var i:uint=0; i<200; i++)
			{
				bmpData.setPixel(i, i, 0xff0000);
			}
			
		}

	}
}